package com.iot.device.domain;

import com.iot.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.iot.common.core.domain.BaseEntity;

/**
 * 压力报警灯对象 t_pressure_sensor_alarm_device
 *
 * @author iot
 * @date 2023-08-07
 */
public class PressureSensorAlarmDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceNo;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 云端订阅主题 */
    @Excel(name = "云端订阅主题")
    private String sendToCloudTopic;

    /** 云端发布主题 */
    @Excel(name = "云端发布主题")
    private String getFromCloudTopic;

    /** 经度 */
    @Excel(name = "经度")
    private Double longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private Double latitude;

    /** 授时服务器 */
    @Excel(name = "授时服务器")
    private String ntpServer;

    /** 切断装置发布主题 */
    @Excel(name = "切断装置发布主题")
    private String alarmDeviceSendTopic;

    /** 切断装置订阅主题 */
    @Excel(name = "切断装置订阅主题")
    private String alarmDeviceGetTopic;

    /** 本地震级预警阈值 */
    @Excel(name = "本地震级预警阈值")
    private Double deviceMagnitude;

    /** 本地烈度预警阈值 */
    @Excel(name = "本地烈度预警阈值")
    private Integer configIntensity;

    /** 地震预警是否打开 */
    @Excel(name = "地震预警是否打开")
    private Boolean earthquakeOpenOrNot;

    /** 预警中心名称 */
    @Excel(name = "预警中心名称")
    private String centerName;

    /** 报警时长 */
    private Integer alarmTime;

    /** 报警音量 */
    private Integer volumeLevel;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeviceNo(String deviceNo)
    {
        this.deviceNo = deviceNo;
    }

    public String getDeviceNo()
    {
        return deviceNo;
    }
    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }
    public void setSendToCloudTopic(String sendToCloudTopic)
    {
        this.sendToCloudTopic = sendToCloudTopic;
    }

    public String getSendToCloudTopic()
    {
        return sendToCloudTopic;
    }
    public void setGetFromCloudTopic(String getFromCloudTopic)
    {
        this.getFromCloudTopic = getFromCloudTopic;
    }

    public String getGetFromCloudTopic()
    {
        return getFromCloudTopic;
    }
    public void setLongitude(Double longitude)
    {
        this.longitude = longitude;
    }

    public Double getLongitude()
    {
        return longitude;
    }
    public void setLatitude(Double latitude)
    {
        this.latitude = latitude;
    }

    public Double getLatitude()
    {
        return latitude;
    }
    public void setNtpServer(String ntpServer)
    {
        this.ntpServer = ntpServer;
    }

    public String getNtpServer()
    {
        return ntpServer;
    }
    public void setAlarmDeviceSendTopic(String alarmDeviceSendTopic)
    {
        this.alarmDeviceSendTopic = alarmDeviceSendTopic;
    }

    public String getAlarmDeviceSendTopic()
    {
        return alarmDeviceSendTopic;
    }
    public void setAlarmDeviceGetTopic(String alarmDeviceGetTopic)
    {
        this.alarmDeviceGetTopic = alarmDeviceGetTopic;
    }

    public String getAlarmDeviceGetTopic()
    {
        return alarmDeviceGetTopic;
    }
    public void setDeviceMagnitude(Double deviceMagnitude)
    {
        this.deviceMagnitude = deviceMagnitude;
    }

    public Double getDeviceMagnitude()
    {
        return deviceMagnitude;
    }
    public void setConfigIntensity(Integer configIntensity)
    {
        this.configIntensity = configIntensity;
    }

    public Integer getConfigIntensity()
    {
        return configIntensity;
    }
    public void setEarthquakeOpenOrNot(Boolean earthquakeOpenOrNot)
    {
        this.earthquakeOpenOrNot = earthquakeOpenOrNot;
    }

    public Boolean getEarthquakeOpenOrNot()
    {
        return earthquakeOpenOrNot;
    }
    public void setCenterName(String centerName)
    {
        this.centerName = centerName;
    }

    public String getCenterName()
    {
        return centerName;
    }

    public Integer getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(Integer alarmTime) {
        this.alarmTime = alarmTime;
    }

    public Integer getVolumeLevel() {
        return volumeLevel;
    }

    public void setVolumeLevel(Integer volumeLevel) {
        this.volumeLevel = volumeLevel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceNo", getDeviceNo())
                .append("deviceName", getDeviceName())
                .append("sendToCloudTopic", getSendToCloudTopic())
                .append("getFromCloudTopic", getGetFromCloudTopic())
                .append("longitude", getLongitude())
                .append("latitude", getLatitude())
                .append("ntpServer", getNtpServer())
                .append("alarmDeviceSendTopic", getAlarmDeviceSendTopic())
                .append("alarmDeviceGetTopic", getAlarmDeviceGetTopic())
                .append("deviceMagnitude", getDeviceMagnitude())
                .append("configIntensity", getConfigIntensity())
                .append("earthquakeOpenOrNot", getEarthquakeOpenOrNot())
                .append("centerName", getCenterName())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("alarmTime", getAlarmTime())
                .append("volumeLevel", getVolumeLevel())
                .toString();
    }
}
